//
//  LXKCollectionViewCell.m
//  EPA
//
//  Created by lanou3g on 16/4/19.
//  Copyright © 2016年 LXK. All rights reserved.
//

#import "LXKCollectionViewCell.h"

@interface LXKCollectionViewCell ()

@property (strong, nonatomic) IBOutlet UIImageView *imageView;
@property (strong, nonatomic) IBOutlet UILabel *titleLabel;
@property (strong, nonatomic) IBOutlet UILabel *ennameLabel;

@end

@implementation LXKCollectionViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setModel:(LXKHomeModel *)model {
    if (_model != model) {
        _model = model;
    }
}

- (void)layoutSubviews {
    self.titleLabel.text = self.model.name;
//    self.imageView.image = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:self.model.coverimg]]];
    [self.imageView sd_setImageWithURL:[NSURL URLWithString:self.model.coverimg]];
    self.ennameLabel.text = self.model.enname;
    
}

@end
